package com.hnkywl.jip.service;

import com.hnkywl.jip.dao.BasicDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class BasicService {
    private BasicDao basicDao;

    @Transactional
    public List findCustomer(String key) {
        return basicDao.findCustomer(key);
    }

    @Transactional
    public List getVoucherTypeCode(Integer companyId) {
        return basicDao.getVoucherTypeCode(companyId);
    }

    @Transactional
    public List getAllSubject(Integer companyId) {
        return basicDao.getAllSubject(companyId);
    }

    @Transactional
    public List findDept(Integer companyId) {
        return basicDao.findDept(companyId);
    }

    @Transactional
    public List findUser(Integer deptId) {
        return basicDao.findUser(deptId);
    }
    @Autowired
    public void setBasicDao(BasicDao basicDao) {
        this.basicDao = basicDao;
    }
}
